<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>绑定淘宝</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
</head>

<body>
  <header class="aui-bar aui-bar-nav aui-bar-light" id="header" >
  <a class="aui-pull-left aui-btn" tapmode onclick="api.closeWin();" >
      <span class="aui-iconfont aui-icon-left" style="color:#ff4285"></span>
  </a>
  <div class="aui-title" style="color:#ff4285">绑定淘宝账号</div>

</header>
<footer id="footer" class="aui-bar aui-bar-tab"  style="background:#ff4285;color:#fff;line-height:55px;" onclick="fnSubmitBindTaobao()">
    <div>绑定账号</div>
</footer>

</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="./conf/config.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
    apiready = function() {
    initEventListenner();//退出键添加提示框
    var header = $api.byId('header');
    $api.fixStatusBar($api.dom('header'));
    api.setStatusBarStyle({
        style: 'dark',
       color:'transparent'
    });
    var headerH = $api.offset(header).h;
    var footer = $api.byId('footer');
    var footerH = $api.offset(footer).h;
            api.openFrame({
                name: 'taobao_bind_frame',
                url: './taobao_bind_frame.html',
                rect: {
                    x: 0,
                    y: headerH,
                    w: 'auto',
                    h: api.winHeight -headerH-footerH,
                },
                pageParam: {
                    wareId: api.pageParam.wareId
                },
                bounces: true
            });
};

function initEventListenner() {
api.addEventListener({
        name: 'keyback'
    }, function(ret, err) {
      api.closeWin();
    });
};
function fnSubmitBindTaobao(){
  var SubmitVal = 'fnSubmitBindTaobaoVal();';
    api.execScript({
        frameName: 'taobao_bind_frame',
        script: SubmitVal
    });
}

</script>

</html>
